README file for: “Class, Policy Attitudes and U.S. Presidential Voting in the Post-Industrial Era: The Importance of Issue Salience,” Franko and Witko, Political Research Quarterly.

July 28, 2022

*** NOTE: Some of the ANES analysis in these replication materials can only be successfully conducted after getting access to restricted ANES data. Occupation codes, which we use for one of our measures of social class, are considered restricted data by the ANES, meaning an application process is required for researchers who would like access to these data. ANES will not allow us to post this restricted data, or derivatives of the restricted data, for replication purposes. It is still possible to run any ANES analyses that do not include the EGP occupation-based measures of class, but the Stata files will have to be edited to exclude any code using the occupation data or EGP measures.


* STATA DO FILES *

1. 00_all_class.do : This file will run all Stata code (i.e., all included do files) necessary to replicate all results presented in the paper.

2. 01_setup_class_GSS_egp_crosswalk.do: Code to create the EGP measures of occupation-based class.

3. 02_setup_class_GSS.do: Setup code for the GSS data.

4. 03_analysis_class_GSS_vote.do: Analysis of vote choice and class using GSS data.

5. 04_analysis_class_GSS_ineq.do: Analysis of inequality attitudes and class using GSS data.

6. 05_analysis_class_GSS_culture.do: Analysis of culture policy attitudes and class using GSS data.

7. 06_analysis_class_GSS_race.do: Analysis of race policy attitudes and class using GSS data.

8. 07_analysis_class_GSS_policyvote.do: Analysis of vote choice and policy attitudes using GSS data.

9. 08_setup_class_ANES_occ_egp_crosswalks.do: Uses IPUMS occupation crosswalks to create 2010 codes from older ANES codes.

10. 09_setup_class_ANES_occ_restrict.do: Setup for restricted ANES occupation codes.

11. 10_setup_class_ANES_restrict_merge.do: Merges restricted ANES occupations codes with the public use data.

12. 11_setup_class_ANES_egp_crosswalk.do: Code to create the EGP measures of occupation-based class.

13. 12_setup_class_ANES.do: Setup code for the ANES data.

14. 13_analysis_class_ANES_vote.do: Analysis of vote choice and class using ANES data.

15. 14_analysis_class_ANES_jobs.do: Analysis of guaranteed income/jobs attitudes and class using ANES data.

16. 15_analysis_class_ANES_culture.do: Analysis of culture policy attitudes and class using ANES data.

17. 16_analysis_class_ANES_race.do: Analysis of race policy attitudes and class using ANES data.

18. 17_analysis_class_ANES_policyvote.do: Analysis of vote choice and policy attitudes using ANES data.

19. 18_analysis_class_ANES_salience.do: Analysis of vote choice and policy attitudes, conditioned by issue salience, using ANES data.

20. 19_tables_class.do: Code to create all results tables presented in the paper.

21. A01_analysis_class_GSS_vote-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of vote choice and class using GSS data.

22. A02_analysis_class_GSS_ineq-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of inequality attitudes and class using GSS data.

23. A03_analysis_class_GSS_culture-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of culture policy attitudes and class using GSS data.

24. A04_analysis_class_GSS_race-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of race policy attitudes and class using GSS data.

25. A05_analysis_class_sepmods_GSS.do: Supplementary analysis of GSS data using separate regression models for each survey year.

26. A06_analysis_class_ANES_vote-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of vote choice and class using ANES data.

27. A07_analysis_class_ANES_jobs-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of guaranteed income/jobs attitudes and class using ANES data.

28. A08_analysis_class_ANES_culture-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of culture policy attitudes and class using ANES data.

29. A09_analysis_class_ANES_race-NoIdeoPID.do: Supplementary analysis excluding excluding party identification and ideology as covariates of race policy attitudes and class using ANES data.

30. A10_analysis_class_sepmods_ANES.do: Supplementary analysis of ANES data using separate regression models for each survey year.


* R SCRIPT FILES *

1. 20_figures_class.R: Code to reproduce all figures presented in the main text.

2. A11_appendix_figures_class: Code to reproduce all figures presented in the appendix.


* DATA FILES *

1. GSS_SubClass.dta : General Social Survey.
    Data and codebook can be found at:
    https://gss.norc.org/get-the-data

2. anes_timeseries_cdf.dta : American National Election Studies.
    Data and codebook can be found at:
    https://electionstudies.org/data-center/

3. occ_crosswalks.xlsx: IPUMS occupation crosswalks.
    Data can be found at:
    https://usa.ipums.org/usa/volii/occ_ind.shtml

4. occ10-to-egp-class-crosswalk.csv : Crosswalk file to create the EGP class measure using occupation data from the GSS.
    Data and documentation can be found at:
    https://osf.io/9nkrw/


* SOFTWARE AND OPERATING SYSTEM *

R version 4.1.2 (64-bit)
Stata version 16.1 (64-bit)
macOS version 12.4


* R DEPENDENCIES *

tidyverse
haven
janitor
gridExtra


* STATA DEPENDENCIES *

estout

